#coding:utf-8


from advance.clazzs.beans.Person1 import  *

list=[]

will=Person()
will.name='will'
will.age=20
list.append(will)

bean=Person()
bean.name="bean"
bean.age=29
list.append(bean)

p=Person()
p.name='Person'
p.age=23
list.append(p)

list=sorted(list,key=lambda s:(s.age,s.name))

print(will)
print(bean)
print(will==bean)

print(list[0].name,list[0].age)
print(list[1].name,list[1].age)
print(list[2].name,list[2].age)
#print(list[2].name,list[2].__score)
